﻿<UserControl x:Class="DailyFx.Studio.ChartView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             
             xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf" 
             
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <controls:MetroTabControl x:Name="Canvus" SelectedItem="{Binding ActiveItem}" TabStripPlacement="Left">
            <controls:MetroTabControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Title}" />
                </DataTemplate>
            </controls:MetroTabControl.ItemTemplate>
            <controls:MetroTabControl.ItemContainerStyle>
                <Style BasedOn="{StaticResource {x:Type controls:MetroTabItem}}" 
                       TargetType="{x:Type controls:MetroTabItem}">
                    
                    <Setter Property="CloseButtonEnabled" Value="True" />
                    
                    <Setter Property="Width" Value="200"/>
               <!-- <Setter Property="Height" Value="36"/> -->
                    <Setter Property="Margin" Value="2"/>
                </Style>
            </controls:MetroTabControl.ItemContainerStyle>
        </controls:MetroTabControl>
    </Grid>
</UserControl>
